﻿// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Diagnostics.CodeAnalysis;

namespace System.ComponentModel.Composition
{
    /// <summary>
    ///     Specifies that an assembly's non-public types and members can participate in composition.
    /// </summary>
    [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "NonPublic", Justification = "Consistent with BindingsFlags.NonPublic")]
    [AttributeUsage(AttributeTargets.Assembly, 
                    AllowMultiple = false, Inherited = false)]
    public sealed class AllowNonPublicCompositionAttribute : Attribute
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="AllowNonPublicCompositionAttribute"/> class.
        /// </summary>
        public AllowNonPublicCompositionAttribute()
        {
        }
    }
}
